#!/usr/bin/env python
# -*- coding: utf-8 -*-
import des
try:
    import pygtk
    pygtk.require("2.0")
except:
    pass
try:
    import gtk
    import gtk.glade
except:
    sys.exit(1)

class Janelao(object):

    def __init__(self):
        self.arquivoglade = "parapintar.glade"
        self.xml = gtk.glade.XML(self.arquivoglade)
    	self.xml.signal_autoconnect(self)

        self.mainWindow = self.xml.get_widget('window1')
        self.mainWindow.set_title("Pintor")
        self.caixa=self.xml.get_widget('caixatela')
        self.mainWindow.connect('destroy', gtk.main_quit)

        tela=des.tela()
        self.caixa.add(tela)

        tela.show()
        self.mainWindow.show_all()
        
        
if __name__ == "__main__":
    w = Janelao()
    gtk.main()
